/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.gen.seam.util.entity;

/**
 *
 * @author Gustavo
 */
public class Type {

    private String type;

    public Type(String type) {
        this.type = type;
    }

    public boolean isPrimitive() {

        boolean result = false;

        if (type.contains("Long") || 
                type.contains("String") ||
                type.contains("Boolean") ||
                type.contains("BigDecimal") ||
                type.contains("Date")) {
            result = true;
        }
        return result;
    }


    @Override
    public String toString() {
        return this.type;
    }
}
